package com.example.springboot.entity;

import lombok.Data;

@Data
public class Message {
    private int id;
    private String title;
    private String content;
    private String sender;
    private String time;
    private String recipient; // "teacher", "student", "system"

    public Message(int id, String title, String content, String sender, String time, String recipient) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.sender = sender;
        this.time = time;
        this.recipient = recipient;
    }
}
